/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package minesweeper;

import minesweeper.gameengine.GameEngine;
import javax.swing.JFrame;
import javax.swing.Timer;

/**
 *
 * @author cj
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {

        JFrame frame = new JFrame("MineSweeper");
        GameEngine engine = new GameEngine(frame);
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setContentPane(engine);
        frame.setVisible(true);
        frame.pack();

        Timer time = new Timer(100, engine);
        time.start();

    }

}
